package com.shanpin.shebao.web.module.material;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.shanpin.shebao.model.material.MaterialFlow;
import com.shanpin.shebao.web.db.AppDbRepository;

@Repository
public class MaterialFlowDao {

	@Autowired
	private AppDbRepository jdbc;
	
	public MaterialFlow getMaterialFlow(int fId) {
		final String sql = "SELECT * FROM `t_sb_material_flow` WHERE `f_id`=? ";
		return jdbc.queryT(sql, MaterialFlow.MAPPER, fId);
	}
	
}
